package com.xiaoka.ins.corp.api.aics.service;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xiaoka.ins.corp.api.aics.common.ParametersManager;
import com.xiaoka.ins.corp.api.aics.common.RiskTransfer;
import com.xiaoka.ins.corp.api.aics.dto.RequestBill;
import com.xiaoka.ins.corp.api.aics.proxy.Bill99PayProxy;
import com.xiaoka.ins.corp.api.aics.proxy.CheckBizProxy;
import com.xiaoka.ins.corp.api.aics.proxy.GenPolicyProxy;
import com.xiaoka.ins.corp.api.aics.proxy.PolicyStatusProxy;
import com.xiaoka.ins.corp.api.aics.proxy.QuoteBizProxy;
import com.xiaoka.ins.corp.api.aics.proxy.QuoteNewBizProxy;
import com.xiaoka.ins.corp.api.aics.proxy.QuoteTrafficProxy;
import com.xiaoka.ins.corp.api.aics.proxy.VehicleTypeProxy;
import com.xiaoka.ins.corp.api.aics.wsclient.CoverageData;
import com.xiaoka.ins.corp.api.aics.wsclient.RequestCvrg;
import com.xiaoka.ins.corp.api.aics.wsclient.checkbiz.UnderWriteVehicleInsurancePolicyCiRequest;
import com.xiaoka.ins.corp.api.aics.wsclient.checkbiz.UnderWriteVehicleInsurancePolicyCiServiceResponse;
import com.xiaoka.ins.corp.api.aics.wsclient.genpolicy.ConfirmVehicleInsuranceApplyRequest;
import com.xiaoka.ins.corp.api.aics.wsclient.genpolicy.ConfirmVehicleInsuranceApplyServiceResponse;
import com.xiaoka.ins.corp.api.aics.wsclient.quotebiz.QueryVehicleInsuranceQuotationCiRequest;
import com.xiaoka.ins.corp.api.aics.wsclient.quotebiz.QueryVehicleInsuranceQuotationCiServiceResponse;
import com.xiaoka.ins.corp.api.aics.wsclient.quotebiznew.NewDeptQuotationCiRequest;
import com.xiaoka.ins.corp.api.aics.wsclient.quotetraffic.QueryVehicleInsuranceQuotationSaliRequest;
import com.xiaoka.ins.corp.api.aics.wsclient.quotetraffic.QueryVehicleInsuranceQuotationSaliServiceResponse;
import com.xiaoka.ins.corp.api.aics.wsclient.vehicletype.QueryVehicleTypesRequest;
import com.xiaoka.ins.corp.api.aics.wsclient.vehicletype.QueryVehicleTypesServiceResponse;
import com.xiaoka.ins.corp.api.config.AicsConfig;
import com.xiaoka.ins.corp.api.dto.request.CustomerDto;
import com.xiaoka.ins.corp.api.dto.request.DeliveryDto;
import com.xiaoka.ins.corp.api.dto.request.RiskDto;
import com.xiaoka.ins.corp.api.dto.request.VehicleDto;

/**
 * AicsService
 * 
 * @author donggua
 * @date 2015/10/13
 */
@Service
public class AicsService {
	/**
	 * 基础配置
	 */
	@Resource
	private AicsConfig aicsConfig;
	/**
	 * 车型查询
	 */
	@Resource
	private VehicleTypeProxy vehicleTypeProxy;
	/**
	 * 商业险保费计算
	 */
	@Resource
	private QuoteBizProxy quoteBizProxy;
	/**
	 * 费改商业险保费计算
	 */
	@Resource
	private QuoteNewBizProxy quoteNewBizProxy;
	/**
	 * 商业险核保
	 */
	@Resource
	private CheckBizProxy checkBizProxy;
	/**
	 * 交强险保费计算
	 */
	@Resource
	private QuoteTrafficProxy quoteTrafficProxy;
	/**
	 * 第三方保单状态查询接口
	 */
	@Resource
	private PolicyStatusProxy policyStatusProxy;
	/**
	 * 快钱支付
	 */
	@Resource
	private Bill99PayProxy bill99PayProxy;
	/**
	 * 生成保单
	 */
	@Resource
	private GenPolicyProxy genPolicyProxy;
	/**
	 * 车型查询接口
	 * **/
	public QueryVehicleTypesServiceResponse getVehicleType(String brandName) {
		QueryVehicleTypesRequest request = new QueryVehicleTypesRequest();
		ParametersManager parametersManager = new ParametersManager(aicsConfig);
		parametersManager.buildQueryVehicleTypesRequest(request, brandName);
		QueryVehicleTypesServiceResponse response = vehicleTypeProxy
				.queryVehicleType(request);
		return response;
	}

	/**
	 * 查询商业险报价
	 * 
	 * @throws Exception
	 * **/
	public QueryVehicleInsuranceQuotationCiServiceResponse getCommercialPremium(
			VehicleDto vehicleDto, CustomerDto customerDto, List<RiskDto> risks) {
		String glassType = "";
		// 典典险别=>保险公司险别
		List<CoverageData> coverages = RiskTransfer.getBizRisk(vehicleDto,
				risks, glassType);
		QueryVehicleInsuranceQuotationCiRequest request = new QueryVehicleInsuranceQuotationCiRequest();
		ParametersManager parametersManager = new ParametersManager(aicsConfig);
		RequestBill bill = new RequestBill();
		// 初始化默认参数
		parametersManager.initRequestBill(bill, vehicleDto, customerDto, risks);
		parametersManager.buildQueryVehicleInsuranceQuotationCiRequest(request,
				bill, glassType, coverages);
		return quoteBizProxy.queryCommercial(request);
	}

	public QueryVehicleInsuranceQuotationCiServiceResponse getNewCommercialPremium(
			VehicleDto vehicleDto, CustomerDto customerDto, List<RiskDto> risks) {
		String glassType = "";
		// 典典险别=>保险公司险别
		List<RequestCvrg> coverages = RiskTransfer.getNewBizRisk(vehicleDto,
				risks, glassType);
		NewDeptQuotationCiRequest request = new NewDeptQuotationCiRequest();
		ParametersManager parametersManager = new ParametersManager(aicsConfig);
		RequestBill bill = new RequestBill();
		// 初始化默认参数
		parametersManager.initRequestBill(bill, vehicleDto, customerDto, risks);
		// 生成请求对象
		parametersManager.buildNewDeptQuotationCiRequest(request, bill,
				coverages);
		return quoteNewBizProxy.queryCommercial(request);
	}

	/**
	 * 商业险核保
	 * **/
	public UnderWriteVehicleInsurancePolicyCiServiceResponse checkCommercial(
			String querySequenceNo, DeliveryDto deliveryDto) {
		// QueryVehicleInsuranceQuotationCiServiceResponse quotationResp = new
		// QueryVehicleInsuranceQuotationCiServiceResponse();
		// 模拟试算成功
		// QueryVHLQuotationCiResult ret =
		// quotationResp.getResponse().getResult();
		// 需要存储的数据
		// 1. 险别
		// ret.getCoverageDatas();
		// 2. 客户信息 CustomerDto
		// 3. 车辆信息 VehicleDto
		// 4. 平台车辆信息 【注意是第一辆 也就是ret.getVehicledata().get(0) 就是平台车辆信息】
		// 平台返回的车辆信息跟VehicleDto 里面属性的对应关系如下
		// vehicleQuality = ret.getVehicledata().get(0).vehicleTonnage,
		// vehicleSeat = ret.getVehicledata().get(0).limitLoadPerson,
		// vehicleId = ret.getVehicledata().get(0).vehicleModel,
		// vehiclePrice = ret.getVehicledata().get(0).vehiclePrice

		// 根据querySequenceNo 查询出试算保存的vehicleDto,customerDto,risks
		VehicleDto vehicleDto = new VehicleDto();
		CustomerDto customerDto = new CustomerDto();
		List<RiskDto> risks = new ArrayList<RiskDto>();
		ParametersManager parametersManager = new ParametersManager(aicsConfig);
		RequestBill bill = new RequestBill();
		//配送信息
		bill.setDeliveryDto(deliveryDto);
		// 初始化默认参数
		parametersManager.initRequestBill(bill, vehicleDto, customerDto, risks);
		UnderWriteVehicleInsurancePolicyCiRequest request = new UnderWriteVehicleInsurancePolicyCiRequest();
		parametersManager.buidUnderWriteVehicleInsurancePolicyCiRequest(
				request, bill);
		return checkBizProxy.verifyBiz(request);
	}

	/**
	 * 查询交强险险报价
	 * **/
	public QueryVehicleInsuranceQuotationSaliServiceResponse getTrafficPremium(
			VehicleDto vehicleDto, CustomerDto customerDto) {
		// 交强险
		List<RiskDto> risks = new ArrayList<RiskDto>();
		List<CoverageData> coverages = RiskTransfer.getTrafficRisk();
		// 组装请求参数
		RequestBill bill = new RequestBill();
		QueryVehicleInsuranceQuotationSaliRequest request = new QueryVehicleInsuranceQuotationSaliRequest();
		ParametersManager parametersManager = new ParametersManager(aicsConfig);
		parametersManager.initRequestBill(bill, vehicleDto, customerDto, risks);
		parametersManager.buildQueryVehicleInsuranceQuotationSaliRequest(
				request, bill, coverages);
		return quoteTrafficProxy.queryTraffic(request);
	}
	
	/**
	 * 第三方保单状态查询
	 */
	public void getPolicyStatus()
	{
		
	}
	
	/**
	 * 快钱支付
	 */
	public void bill99Pay()
	{
		
	}
	
	/**
	 * 保单生成[在支付成功后调用]
	 * @param policyAppNo 投保单号
	 * @return
	 */
	public ConfirmVehicleInsuranceApplyServiceResponse generatePolicy(String policyAppNo)
	{
		ConfirmVehicleInsuranceApplyRequest request = new ConfirmVehicleInsuranceApplyRequest();
		ParametersManager parametersManager = new ParametersManager(aicsConfig);
		parametersManager.buildConfirmVehicleInsuranceApplyRequest(request, policyAppNo);
		return genPolicyProxy.genPolicy(request);
	}

	/**
	 * 交强险核保
	 * **/
	public String checkTraffic() {
//		condition = new udsi.underwriteVHLPolicySaliCondition()
//        {
//            //数据来源
//            dataSource = bill.datasource,
//            //核保标志 0按系统默认 1自动核保 2不自动核保
//            autoCheck = "0",
//            //操作类型 I：新增 U：修改(选择此项时需要传待修改的投保单号) 申请核保传I  重新申请核保传(即修改投保单)U
//            operTyp = "I",
//            //单证类型 A：投保 P：保单 B：批单申请 E：批单
//            docTyp = "A",
//            //商业险0350，交强险0326
//            productNo = "0326",
//            //机构编码: 上海网电销业务部 0376
//            deptCode = bill.deptcode,
//            //保险起期
//            startDate = bill.begindate,
//            //保险止期
//            endDate = bill.enddate,
//            //系数类型 月或日费率 340001 按日计算 340002 按月计算
//            ratioType = "340001",
//            //短期系数 保险期限1年，默认为 1.000000
//            ratio = "1.000000",
//            //汇率
//            exchangeRate = "1",
//            //保额合计
//            amount = cacheData.amount,
//            //保费合计
//            premium = cacheData.premium,
//            //传商业险试算返回的VEHICLE_ADJUST中的TOTAL_DISCOUNT
//            totalDiscount = cacheData.totalDiscount,
//            //保额币种 默认传01
//            amtCur = "01",
//            //保费币种
//            prmCur = "01",
//            //续保标志 0 非续保   1 续保
//            renewalFlag = "0",
//            //车船税标志 0:不交车船税 1:交车船税
//            taxFlag = "1",
//            //业务来源 电销：19009，网销：19008。传“电销”时“新业务来源”对应值（191020，191019，191026）；“网销”时“新业务来源”对应值（191018，191017，191027）
//            businessType = "19008",
//            //签单日期
//            signDate = bill.opreated,
//            //核心业务 0: GB,1:KB自营, 2: KB下放默认传0
//            kernelFlag = "0",
//            //业务员代码
//            salesmanNo = areaConfig.OperatorCode,
//            //投保人姓名
//            appName = bill.holdername,
//            //投保人联系人
//            appContact = bill.holdername,
//            //投保人联系人电话
//            appTel = bill.holderphone,
//            //投保人地址
//            appAddress = "",
//            //投保人邮编
//            appZip = bill.holderzip,
//            //投保人证件号码
//            appCertiCode = bill.holderidno,
//            //被保险人姓名
//            insuredName = bill.holdername,
//            insuredTel = bill.holderphone,
//            insuredAddress = "",
//            insuredZip = bill.holderzip,
//            insuredCertiCode = bill.holderidno,
//            //受益人名称 按揭车时该项必传
//            benefitName = bill.holdername,
//            //受益人证件号
//            benefitCertiCode = bill.holderidno,
//            //客户名称
//            customerName = bill.holdername,
//            //男：106001，女：106002
//            sex = bill.sex,
//            //行业
//            industury = "000",
//            //涉农类型
//            agriType = "0",
//            //风险等级 默认传空
//            riskLevel = "",
//            //争议解决方式
//            debateSolve = "007001",
//            remark = "无",
//            //录入人  同“业务员代码”
//            operatorCode = bill.operatorcode,
//            //录单日期  同“签单日期”
//            operatorDate = bill.opreated,
//            //保单生成  默认传 0
//            policyGeneratedType = "0",
//            //打印方式 默认传 0
//            printType = "0",
//            //手续费比例
//            commissionPercentage = "0",
//            //缴费方式  缴费方式 002001（划卡）、002011 （现金）、002017（快钱）
//            paymode = "002018",
//            //操作日期  同“签单日期”
//            operateDate = bill.opreated,
//            //业务模式 0:电销 1:网销 2:网转电
//            businessMode = "1",
//            //新业务来源  "新业务来源"必须在“业务来源”传“电销”或者“网销”时才传以下值 ：191020(常规电销业务);191018(常规网销业务);191019(闭环电销业务);191017(闭环网销业务);191026(电销新业务);191027(网销新业务)
//            businessStyle = "191018",
//            //险别信息
//            requestCoverageDatas = coverageArray,
//            //查询码  传交强险试算时返回的查询码
//            querySequenceNo = cacheData.querySequenceNo,
//            //订单号 默认传空
//            orderCode = "",
//            //代理人 业务类型为代理业务、经济业务时必传
//            cmpnyageCde = "",
//            //代理协议号  业务类型为代理业务时必传
//            agtagrNo = "",
//            //行驶证车主
//            owner = bill.holdername,
//            //车牌号码
//            carMark = custDTO.vehicleLicenceCode,
//            //发动机
//            engineNo = custDTO.engineNo,
//            //车架号
//            rackNo = custDTO.vehicleFrameNo,
//            //车型名称
//            vehicleBrand = vehicleDTO.brandName,
//            //车型代码
//            vehicleModel = vehicleDTO.vehicleId,
//            //初次登记日期
//            registerDate = bill.firstreg,
//            //牌号种类  02 小型汽车号牌  03 使馆汽车号牌  06 外籍汽车号牌  07 两、三轮摩托车号牌  13 农用运输车号牌
//            vehicleType = "02",
//            //所属性质
//            belongType = "338001",
//            //核定载客数  车型查询接口中VEHICLE_SEAT
//            limitLoadPerson = vehicleDTO.vehicleSeat.ToString(),
//            //排气量  车型查询接口中VEHICLE_DISPLACEMENT
//            exhaustCapacity = vehicleDTO.exhaustMeasure.ToString(),
//            //新旧车标志  0 新车,1 旧车
//            newVehicleFlag = bill.newvehicleFlag,
//            //新车购置价  车型查询接口中SZXH_TAXED_PRICE
//            vehiclePrice = vehicleDTO.purchasePriceIncludeTax.ToString(),
//            //车辆类型
//            vehicleCategory = bill.vehicleCategory,
//            //使用年限  根据初登记如期计算:
//            useAges = bill.trafficUseages,
//            //吨位数
//            tonnage = "0.0",
//            //功率
//            power = vehicleDTO.vehiclePower.ToString(),
//            //座位数
//            seatCapacity = bill.seatCapacity,
//            userType = bill.custtype,
//            //是否外地车
//            ecdemicVehicleFlag = bill.ecdemicVehicleFlag,
//            //过户车标志
//            changeOwnerFlag = bill.transferFlag,
//            //转移登记日期
//            registrationTransferedDate = bill.transferDate,
//            //往年（续/转）保单号
//            renewalPolicyNo = "",
//            //验车情况
//            checkCode = "305005003",
//            //投保类型 进口：1，其他：0
//            appType = "0",
//            //是否按揭车 默认传 0
//            snapFlag = "0",
//            //玻璃类型  传商业险试算返回报文中对应的值
//            glassType = "303011001",
//            //如果为过户车辆，则传33908
//            specialDeclareReason = bill.specialDeclare,
//            //投保商业  0：不投保商业险 1：投保商业险
//            inteFalg = "0",
//            //发证日期
//            certDate = bill.firstreg,
//            //平台车型代码
//            platformVehicleModel = vehicleDTO.vehicleId,
//            //能源类型
//            fuelType = "32773001",
//            //与道路交通事故相联系的浮动比率 传交强险保费计算时返回的对应值
//            roadAccidentFloatingRate = trafficDTO.roadAccidentFloatingRateValue,
//            //酒后驾驶违法行为费率浮动比例 同上
//            drunkDrivingFloatingRate = "",
//            //上一个年度每次违反道路交通信号灯
//            voilateRoadSignLastYear = "",
//            //上一个年度发生驾驶与准驾车型不符的
//            typeMismatchLastYear = "",
//            //上一个年度发生饮酒（含醉酒）后驾驶机动车的
//            drunkDrivingLastYear = "",
//            //上年度发生各类道路交通违法行为五次（含）以上的
//            overCommitmentLastYear = "",
//            //已处理饮酒驾驶违法行为次数
//            drinkDrivingDealTime = "",
//            //未处理饮酒驾驶违法行为次数
//            drinkDrivingNonDealTime = "",
//            //已处理醉酒驾驶违法行为次数
//            drunkDrivingDealTime = "",
//            //未处理醉酒驾驶违法行为次数
//            drunkDrivingNonDealTime = "",
//            //饮酒驾驶违法行为次数
//            drinkDrivingTime = "",
//            //醉酒驾驶违法行为次数 
//            drunkDrivingTime = "",
//            //二级机构  传机构的前两位，如上海网电销业务部0376就传03
//            secondaryOrganization = bill.secondcode,
//            //车船税Tax
//            ///收费方式 349002001 正常纳税  349002002 已经完税  349002003 免税  349002004 减免税  349002005 拖欠交税  349002006 新车缓税  349002007 纳税并补税
//            taxCurrentType = trafficDTO.taxCurrentType,
//            //滞纳金
//            lateFee = trafficDTO.lateFee,
//            //当年应缴 
//            currentTax = trafficDTO.currentTax,
//            //上年应缴
//            formerTax = trafficDTO.formerTax,
//            //合计应缴
//            sumUpTax = trafficDTO.sumUpTax,
//            //纳税人名称
//            taxPayerName = bill.holdername,
//            //补交上年
//            payLastYear = trafficDTO.payLastYear,
//            //当年缴税起期
//            taxBeginDateCurrentYear = trafficDTO.taxBeginDateCurrentYear,
//            //证照类型
//            idType = trafficDTO.idType,
//            //上年计算类型
//            calculatedTypeLastYear = trafficDTO.calculatedTypeLastYear,
//            //当年缴税止期
//            taxEndDateCurrentYear = trafficDTO.taxEndDateCurrentYear,
//            //计算类型
//            calculatedType = trafficDTO.calculatedType,
//            //车辆细分
//            vehecleTypeDetail = "3490010013",
//            //上年缴税止期
//            taxEndDateLastYear = trafficDTO.taxEndDateLastYear,
//            //牌照类型
//            licenceType = "02",
//            //整备质量   暂江苏要求必传
//            vehicleQuality = vehicleDTO.vehicleQuality,
//            //上年缴税起期
//            taxBeginDateLastYear = trafficDTO.taxBeginDateLastYear,
//            //纳税人识别号
//            taxpayerNo = trafficDTO.taxpayerNo,
//            //缴税日期
//            taxPaidDate = trafficDTO.taxPaidDate,
//            //上次缴税年度
//            lastPaidYear = trafficDTO.lastPaidYear,
//            //税款所属期
//            taxPeriod = trafficDTO.taxPeriod,
//            //座落区县
//            positionCode = trafficDTO.positionCode,
//            //上年保险起期
//            startDateLastYear = trafficDTO.startDateLastYear,
//            //上年保险止期
//            endDateLastYear = trafficDTO.endDateLastYear,
//            //完税凭证字轨号
//            payEvidenceNo = trafficDTO.payEvidenceNo,
//            //税务机关名称
//            taxDepartmentName = trafficDTO.taxDepartmentName,
//            //税票号码类型
//            taxBillType = trafficDTO.taxBillType,
//            //完税凭证号
//            payNo = trafficDTO.payNo,
//            //减税凭证号
//            reduceNo = trafficDTO.reduceNo,
//            //开具税务机关
//            department = trafficDTO.department,
//            //未税单号
//            untaxedPolicyNo = trafficDTO.untaxedPolicyNo,
//            //上年应缴现值
//            payValueLastYear = trafficDTO.payValueLastYear,
//            //使用状态
//            useStatus = trafficDTO.useStatus,
//            //免征税额
//            taxFreeAmount = trafficDTO.taxFreeAmount,
//            //计税标准
//            taxStandard = trafficDTO.taxStandard,
//            //纳税人地址
//            taxpayerAddress = trafficDTO.taxpayerAddress,
//            //微机编码
//            pcCode = trafficDTO.pcCode,
//            //税票号
//            taxBillingNo = trafficDTO.taxBillingNo,
//            //滞纳金现值
//            lateFeeValue = trafficDTO.lateFeeValue,
//            //合计车船税现值
//            totalTaxValue = trafficDTO.totalTaxValue,
//            //邮政编码
//            zip = bill.holderzip,
//            //当年应缴变化
//            payChange = trafficDTO.payChange,
//            //纳税人类别
//            taxpayerType = trafficDTO.taxpayerType,
//            //是否退保车船税
//            returnTaxFlag = trafficDTO.returnTaxFlag,
//            //票证类型
//            ticketType = trafficDTO.ticketType,
//            //居住地址
//            address = trafficDTO.address,
//            //纳税人国籍
//            conruty = "156",
//            //纳税人电话
//            tel = bill.holdermobile,
//            //滞纳金变化
//            lateFeeChange = trafficDTO.lateFeeChange,
//            //车牌号
//            vehicleNo = custDTO.vehicleLicenceCode,
//            //上年承保公司
//            lastCompany = trafficDTO.lastCompany,
//            //行驶证车辆类型 K33 轿车
//            poCategory = "K33",
//            //当年应缴现值
//            payValueCurrent = trafficDTO.payValueCurrent,
//            //上年应缴变化
//            payChangeLastYear = trafficDTO.payChangeLastYear,
//            //合计车船税变化
//            totalChange = trafficDTO.totalChange,
//            //纳税地区代码
//            locationCode = trafficDTO.locationCode,
//            //计税单位代码
//            unittypeCde = trafficDTO.unittypeCde,
//            //单位计税金额
//            unitRate = trafficDTO.unitRate,
//            //当期年单位税额
//            annualTaxamt = trafficDTO.annualTaxamt,
//            //车船税申报状态
//            decStatus = trafficDTO.decStatus,
//            //算税标识
//            calcFlag = trafficDTO.calcFlag,
//            //车船税打印码
//            taxPrintNo = trafficDTO.taxPrintNo,
//            //申报日期
//            declareDate = trafficDTO.declareDate,
//            absoluteFranchise = "",
//            age = "",
//            agencyNme = "",
//            agencyProfId = "",
//            appNo = "",
//            appRecord = "",
//            appTime = "",
//            arbitrationDept = "",
//            carColor = "",
//            company = "",
//            computerIp = "",
//            depreciationYear = "",
//            drvOwnerBirthday = "",
//            drvOwnerNme = "",
//            drvOwnerSex = "",
//            email = "",
//            //合作业务来源
//            fromCde = "00021",
//            guardCode = "",
//            inqId = "",
//            appCi = "",
//            certificateDate = "",
//            certificateNo = "",
//            certificateType = "",
//            citizenRelocatedDate = "",
//            defineWay = "",
//            dutyReparFloatingRate = "",
//            exhaust = "",
//            groupPurchaseContactNo = "",
//            loanBank = "",
//            noclaimAmountCode = "",
//            oldCarMark = "",
//            //otherData = "",
//            otherFirstNoProveYear = "",
//            overallFloatingCoefficient = "",
//            policyAppNoCiVehicle = "",
//            relatedOffensesFloating = "",
//            //requestDriverDatas = "",
//            roadAccidentFloatingRateValue = "",
//            roadViolatFloatingRate = "",
//            taskType = "",
//            taxDiscount = "",
//            taxerCode = "",
//            taxPoCategory = bill.taxPoCategory,
//            taxReduceProp = "",
//            taxReduceRsn = "",
//            taxReduceType = "",
//            taxRemark = "",
//            taxVehicleCategory = "",
//            //车辆分类 349001001 客车  349001002 货车  349001003 摩托车  349001004 免税车  349001005 减免税车
//            taxVehicleType = "349001001",
//            licenseColor = "",
//            taxWay = "",
//            //使用性质 非营业：336001
//            useType = "336001",
//            //otherData = "",
//            park = "",
//            policyAppNoCi = "",
//            posNo = "",
//            reachArea = "",
//            reinsuranceFlag = "",
//            renewalNo = "",
//            source = "echannel",
//            specialAppoint = "",
//            //undrmsgData = "",
//            usbkey = "",
//            vhlAppName = "",
//            vhlPriceRate = "",
//
//            //渠道信息
//            agentData = new udsi.agentData()
//            {
//                //commissionProprortion同Base下“手续费比例”
//                commissionProprortion = "",
//                agentNme = "",
//                //客户性质 客户性质 193001 股东 193002 非股东
//                custNature = "193002",
//                //协议序号 代理经纪业务必传
//                subCoNo = ""
//            },
//            //核保信息表
//            undrmsgData = new udsi.undrmsgData()
//            {
//                //目标机构 默认传 00
//                descDptCde = bill.deptcode,
//                //紧急程度  005005	特急  005001	普通(默认) 005002	急 005003	加急 005004	紧急
//                emergency = "005001",
//                //上报说明(申请核保时的说明)
//                rptDesc = "电子商务业务"
//            },
//            //客户信息
//            customer = new udsi.customer()
//            {
//                //投保人姓名
//                appName = bill.holdername,
//                //投保人地址
//                appAddress = "",
//                //投保人类型  0	法人  1	个人（中国籍） 2 个人（非中国籍）
//                appCustType = bill.custtype,
//                appCertiType = bill.holderidtype,
//                appCertiCode = bill.holderidno,
//                appTel = bill.holderphone,
//                insuredAge = bill.holderage,
//                appAge = bill.holderage,
//                appClntQq = "",
//                appEmail = "",
//                appLegalCertificateType = "",
//                appmobileTel = bill.holdermobile,
//                appSchoolName = "",
//                appSex = bill.sex,
//                appZip = bill.holderzip,
//                benefitAge = "",
//                benefitLegalCertificateType = "",
//                benefitName = "",
//                benefitSchoolName = "",
//                benefitSex = "",
//                insuredName = bill.holdername,
//                insuredClntQq = "",
//                insuredEmail = "",
//                insuredLegalCertificateType = "",
//                insuredmobileTel = bill.holdermobile,
//                insuredSchoolName = "",
//                insuredSex = bill.sex,
//                insuredZip = bill.holderzip,
//                insuredAddress = "",
//                insuredCustType = bill.custtype,
//                insuredCertiType = bill.holderidtype,
//                insuredCertiCode = bill.holderidno,
//                insuredTel = bill.holderphone,
//                benefitCustType = "",
//                benefitCertiType = "",
//                benefitCertiCode = ""
//            }
//        },
//        //配送信息表
//        deliveryInfo = new Yangche.Third.Service.underwriteVehicleInsurancePolicySali.deliveryInfoData()
//        {
//            //配送类别 0-配送；1-邮寄
//            deliveryType = "0",
//            //联系人姓名
//            name = delivery.receiveName,
//            //手机
//            cellphone = delivery.receiveMobile,
//            //邮编
//            zip = "",
//            //地址
//            address = delivery.receiveAddress,
//            //0家庭住址，1单位住址
//            addressFlag = delivery.receiveAddressFlag,
//            //发票抬头
//            receiptHead = delivery.receiptHead,
//            //产品种类 0车险 1非车
//            productSort = "0",
//            //备注
//            remark = delivery.receiveRemark,
//            //电话区号
//            telArea = "",
//            //电话号码
//            telephone = "",
//            title = "",
//            //非车配送详细  发票和纸质保单，0-纸质保单，1-发票，2-纸质保单和发票
//            deliveryDetail = "2"
//        },
//        //是否是电销流程标识 0表示走传统流程，1表示走电销流程
//        productSign = "0",
//        authorityData = new Yangche.Third.Service.underwriteVehicleInsurancePolicySali.authorityData() { userName = AICSConfig.Authorize.userName, password = AICSConfig.Authorize.passWord }
//    }
		return "";
	}
}
